package bsw.wode.entity;

/**
 * WodeGroupActivityApplyId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WodeGroupActivityApplyId implements java.io.Serializable {

	// Fields

	private String activityCode;
	private String userCode;

	// Constructors

	/** default constructor */
	public WodeGroupActivityApplyId() {
	}

	/** full constructor */
	public WodeGroupActivityApplyId(String activityCode, String userCode) {
		this.activityCode = activityCode;
		this.userCode = userCode;
	}

	// Property accessors

	public String getActivityCode() {
		return this.activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}

	public String getUserCode() {
		return this.userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WodeGroupActivityApplyId))
			return false;
		WodeGroupActivityApplyId castOther = (WodeGroupActivityApplyId) other;

		return ((this.getActivityCode() == castOther.getActivityCode()) || (this
				.getActivityCode() != null
				&& castOther.getActivityCode() != null && this
				.getActivityCode().equals(castOther.getActivityCode())))
				&& ((this.getUserCode() == castOther.getUserCode()) || (this
						.getUserCode() != null
						&& castOther.getUserCode() != null && this
						.getUserCode().equals(castOther.getUserCode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getActivityCode() == null ? 0 : this.getActivityCode()
						.hashCode());
		result = 37 * result
				+ (getUserCode() == null ? 0 : this.getUserCode().hashCode());
		return result;
	}

}